<?php

/* @var $factory \Illuminate\Database\Eloquent\Factory */

use Faker\Generator as Faker;

$factory->define(App\Competition::class, function (Faker $faker) {
    return [
        'title' => $faker->realText(45, 1),
        'image' => $faker->imageUrl(200, 200, 'cats'),
        'description' => $faker->realText(300, 1),
        'location' => $faker->address,
        'status' => $faker->numberBetween(0,2),
        'start_time' => $faker->dateTime->format('Y-m-d H:i:s'),
        'end_time' => $faker->dateTime->format('Y-m-d H:i:s'),
        'deadline' => $faker->dateTime->format('Y-m-d H:i:s')
    ];
});
